Package-level declarations

Types

Link copied to clipboard
@Serializable
data class ClaimDisplay(val lang: LangTag, val label: String, val description: String? = null)
Link copied to clipboard
@Serializable
data class ClaimMetadata(val path: ClaimPath, val display: List<ClaimDisplay>? = null, val selectivelyDisclosable: ClaimSelectivelyDisclosable? = DefaultSelectivelyDisclosable, val svgId: SvgId? = null)
Link copied to clipboard
value class ClaimPath(val value: List<ClaimPathElement>)

The path is a non-empty list of elements, null values, or non-negative integers. It is used to select a particular claim in the credential or a set of claims.

Link copied to clipboard
sealed interface ClaimPathElement

Elements of a ClaimPath

Link copied to clipboard
object ClaimPathSerializer : KSerializer<ClaimPath>

Serializer for ClaimPath

Link copied to clipboard
@Serializable
value class CssColor(val value: String)

An RGB color value as defined in W3C.CSS-COLOR

Link copied to clipboard
@Serializable
value class Display(val value: List<DisplayMetadata>)
Link copied to clipboard
@Serializable
data class DisplayMetadata(val lang: LangTag, val name: String, val description: String? = null, val rendering: RenderingMetadata? = null)
Link copied to clipboard
@Serializable
value class DocumentIntegrity(val value: String)
Link copied to clipboard

Gets the JWKSet given a location

Link copied to clipboard

Gets the metadata of an SD-JWT VC issuer.

Link copied to clipboard
@Serializable
value class JsonSchema(val value: JsonObject)
Link copied to clipboard
typealias KtorHttpClientFactory = () -> HttpClient

Alias of a method that creates a HttpClient

Link copied to clipboard
@Serializable
value class LangTag(val value: String)
Link copied to clipboard
@Serializable
data class LogoMetadata(val uri: URI, val uriIntegrity: DocumentIntegrity? = null, val altText: String? = null)
Link copied to clipboard

A function to look up public keys from DIDs/DID URLs.

Link copied to clipboard
@Serializable
data class RenderingMetadata(val simple: SimpleRenderingMethod? = null, val svgTemplates: List<SvgTemplate>? = null)
Link copied to clipboard
@Serializable
data class SdJwtVcIssuerMetadata(val issuer: URI, val jwksUri: URI? = null, val jwks: JsonObject? = null)
Link copied to clipboard
@Serializable
data class SdJwtVcTypeMetadata(val vct: Vct, val vctIntegrity: DocumentIntegrity? = null, val name: String? = null, val description: String? = null, val extends: URI? = null, val extendsIntegrity: DocumentIntegrity? = null, val display: Display? = null, val claims: List<ClaimMetadata>? = null, val schema: JsonSchema? = null, val schemaUri: URI? = null, val schemaUriIntegrity: DocumentIntegrity? = null)
Link copied to clipboard
interface SdJwtVcVerifier<out JWT>

An SD-JWT-VC specific verifier

Link copied to clipboard
Link copied to clipboard
fun interface SelectPath

Matches a ClaimPath to a JsonElement

Link copied to clipboard
@Serializable
data class SimpleRenderingMethod(val logo: LogoMetadata? = null, val backgroundColor: CssColor? = null, val textColor: CssColor? = null)

The simple rendering method is intended for use in applications that do not support SVG rendering

Link copied to clipboard
@Serializable
enum SvgColorScheme : Enum<SvgColorScheme>
Link copied to clipboard
@Serializable
enum SvgContrast : Enum<SvgContrast>
Link copied to clipboard
@Serializable
value class SvgId(val value: String)

It MUST consist of only alphanumeric characters and underscores and MUST NOT start with a digit

Link copied to clipboard
@Serializable
enum SvgOrientation : Enum<SvgOrientation>
Link copied to clipboard
@Serializable
data class SvgTemplate(val uri: URI, val uriIntegrity: DocumentIntegrity? = null, val properties: SvgTemplateProperties? = null)
Link copied to clipboard
@Serializable
data class SvgTemplateProperties(val orientation: SvgOrientation? = null, val colorScheme: SvgColorScheme? = null, val contrast: SvgContrast? = null)

Properties for the SVG template

Link copied to clipboard
object URISerializer : KSerializer<URI>
Link copied to clipboard
@Serializable
value class Vct(val value: String)
Link copied to clipboard
fun interface X509CertificateTrust

Properties

Link copied to clipboard

Factory which produces a Ktor Http client

Functions

Link copied to clipboard
inline fun <T> ClaimPathElement.fold(ifAllArrayElements: () -> T, ifArrayElement: (Int) -> T, ifClaim: (String) -> T): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun sdJwtVcSignatureVerifier(httpClientFactory: KtorHttpClientFactory? = null, trust: X509CertificateTrust? = null, lookup: LookupPublicKeysFromDIDDocument? = null): JwtSignatureVerifier<SignedJWT>

Factory method for producing a SD-JWT-VC specific signature verifier. This verifier will get the Issuer's public key from the JWT part of the SD-JWT. In particular,